package com.gxc.filter;

import com.gxc.chain.UserParamFilterChain;
import com.gxc.model.User;
import com.gxc.model.UserEo;

/**
 * @author GongXincheng
 * @date 2021/8/16 14:59
 */
public class UserNameFilter implements UserParamFilter {

    @Override
    public void filter(UserEo userEo, User user, UserParamFilterChain chain) {
        String userName = userEo.getUserName();
        user.setUserName(userName);

        chain.filter(userEo, user);
    }

}
